package com.xxy.mapper;

import com.xxy.pojo.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
* @author Lenovo
* @description 针对表【article】的数据库操作Mapper
* @createDate 2024-01-28 17:15:38
* @Entity com.xxy.pojo.Article
*/
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    //新增
    @Insert("insert into article(title,content,cover_img,state,category_id,create_user,create_time,update_time) " +
            "values(#{title},#{content},#{cover_img},#{state},#{category_id},#{create_user},#{create_time},#{update_time})")
    void add(Article article);
}




